package db.type;

import utility.Utility;

public class Table {
	
	private String name; 
	private Schema schema;
	
	public Table() {
		
	}
	
	public Table(Schema schema, String tableName) {
		this.schema = schema;
		this.name = tableName;
	}
	
	
	
	public Schema getSchema() {
		return schema;
	}



	public void setSchema(Schema schema) {
		this.schema = schema;
	}



	public String getJavaName() {
		String name = Utility.createJavaNameFromFieldName(false, getName());
		
		return name.substring(0, 1).toUpperCase()
			+ name.substring(1, name.length()) 
			+ "Dbo";
	}



	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}
	
	public String getFullName() {
		return getSchema().getName() + "." + getName();
	}

}
